package derk.sam;


public class FunParameter {
	String pramType;
	String pramValue;
	int pramLen;
	byte retData[];

	public void SetParame(String pType,String pValue)
	{
		this.pramType = pType;
		this.pramValue = pValue;
	}

	public void SetPointer(int pLen)
	{
		pramType = "pointer";
		this.pramLen = pLen;
		retData = new byte[this.pramLen];
	}

	public void SetRetData(byte pData[],int pos)
	{

		for(int i = pos ; i < pos + this.pramLen ; i++)
		{
			this.retData[i - pos] = pData[i];
		}
	}

	public String GetValue()
	{
		return this.pramValue;
	}

	public String GetType()
	{
		return this.pramType;
	}

	public int GetLen()
	{
		return this.pramLen;
	}

	public byte[] GetRetData()
	{
		return this.retData;
	}
}
